package com.aipp.mall.h5.domain.entity;

import com.aipp.mall.common.anno.Note;
import com.aipp.mall.common.model.BaseAudit;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 商品信息对象 pms_product
 *
 * @author zcc
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("pms_product")
public class Product extends BaseAudit implements Serializable {

    @Serial
    private static final long serialVersionUID = -1234387863460972529L;

    @Note("ID")
    private Long id;

    @Note("BRAND_ID")
    private Long brandId;

    @Note("CATEGORY_ID")
    private Long categoryId;

    @Note("商品编码")
    private String outProductId;

    @Note("NAME")
    private String name;

    @Note("主图")
    private String pic;

    @Note("画册图片，连产品图片限制为5张，以逗号分割")
    private String albumPics;

    @Note("上架状态：0->下架；1->上架")
    private Integer publishStatus;

    @Note("排序")
    private Integer sort;

    @Note("PRICE")
    private BigDecimal price;

    @Note("单位")
    private String unit;

    @Note("商品重量，默认为克")
    private BigDecimal weight;

    @Note("商品销售属性，json格式")
    private String productAttr;

    @Note("产品详情网页内容")
    private String detailHtml;

    @Note("移动端网页详情")
    private String detailMobileHtml;

    @Note("品牌名称")
    private String brandName;

    @Note("商品分类名称")
    private String productCategoryName;

}
